/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Bussinnes;

import Dao.PertinenciaFacadeLocal;
import Model.Pertinencia;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author jose
 */
@Stateless
public class PertinenciaBL implements PertinenciaBLLocal {
    @EJB
    private PertinenciaFacadeLocal pertinenciaFacade;

    public List<Pertinencia> Lista(){
        return pertinenciaFacade.findAll();
    }

    public void registrarPertinencia(Pertinencia p) {
        pertinenciaFacade.create(p);
    }


    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
